package com.dana.gomoku.mapper;

import com.dana.gomoku.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    //注册添加
    Integer insert(String username, String password);
    //登录查询
    User select(String username);

    void userWin(Integer userId);
    void userLose(Integer userId);
}
